package com.poc;

import java.util.ResourceBundle;

public class SystemProperties {

	private static SystemProperties instance;
	
	private ResourceBundle properties = ResourceBundle.getBundle("app");
	
	private SystemProperties() {}
	
	public static SystemProperties getInstance() {
		if(SystemProperties.instance == null) {
			SystemProperties.instance = new SystemProperties();
		}
		
		return SystemProperties.instance;
	}
	
	public String getDataBaseURL() {
		return this.properties.getString("database.url");
	}
	
	public String getDataBaseUser() {
		return this.properties.getString("database.user");
	}
	
	public String getDataBasePassword() {
		return this.properties.getString("database.password");
	}
	
}
